Skip to content

feat(API): Document new query parameters#393

Merged
Mikko Karkee (Varpuspaavi) merged 4 commits intomasterfrom
TSE-869-1
Aug 28, 2023
Merged

feat(API): Document new query parameters#393
Mikko Karkee (Varpuspaavi) merged 4 commits intomasterfrom
TSE-869-1

Conversation

@Varpuspaavi
Copy link
Copy Markdown
Contributor

@Varpuspaavi Mikko Karkee (Varpuspaavi) commented Aug 24, 2023

@Varpuspaavi Mikko Karkee (Varpuspaavi) marked this pull request as ready for review August 24, 2023 11:27
@Varpuspaavi
Copy link
Copy Markdown
Contributor Author

I will try to bump the GO version on the generated CLI PR jablan

Comment thread paths/comments/index.yaml Outdated
--project_id <project_id> \
--key_id <key_id> \
--branch my-feature-branch \
--data '{"branch":"my-feature-branch", "filters": ["unread", "read"], "query": "Some comment content", "locale_ids": ["someId"] }' \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is a GET request, so the parameters should be passed as query params, not as JSON?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted. This is probably something we have to check for every endpoint also, seems like it's pretty mixed atm 🤔

Copy link
Copy Markdown
Collaborator

@jablan jablan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the curl examples seem wrong, with parameters in a data payload rather than in the query. have you tried these examples against the app, I'm curious whether both ways of passing them work?

Comment thread paths/comment_replies/index.yaml Outdated
-u USERNAME_OR_ACCESS_TOKEN \
-X GET \
-d '{"branch":"my-feature-branch"}' \
-d '{"branch":"my-feature-branch", "filters": ["unread", "read"], "query": "Some comment content"}' \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go into query I believe

Comment thread paths/comments/index.yaml Outdated
-u USERNAME_OR_ACCESS_TOKEN
-u USERNAME_OR_ACCESS_TOKEN \
-X GET \
-d '{"branch":"my-feature-branch", "filters": ["unread", "read"], "query": "Some comment content", "locale_ids": ["someId"] }' \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants